package com.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
public class SysPermission {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String url;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long type;
    private String permission;
    private String method;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sort;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

}
